Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added typescript types to fluid combobox and its skeleton state #17563

Conversation

riddhybansal
Copy link
Contributor

Closes #17367

Added typescript types to fluid combobox and its skeleton state

Changelog

Changed

  • Added typescript types to fluid combobox and its skeleton state and converted index.js to index.tsx

Testing / Reviewing

Fluid Combobox and its skeleton state should work as intended.

@riddhybansal riddhybansal requested a review from a team as a code owner September 24, 2024 15:10
Copy link

netlify bot commented Sep 24, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 48b4c3f
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/670590939fb7c50008e04e43
😎 Deploy Preview https://deploy-preview-17563--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 24, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 48b4c3f
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/67059093c775150008e013a6
😎 Deploy Preview https://deploy-preview-17563--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@riddhybansal riddhybansal requested a review from a team as a code owner September 25, 2024 08:33
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 77.13%. Comparing base (21e4380) to head (48b4c3f).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...omponents/FluidComboBox/FluidComboBox.Skeleton.tsx 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17563      +/-   ##
==========================================
- Coverage   77.13%   77.13%   -0.01%     
==========================================
  Files         409      409              
  Lines       14024    14025       +1     
  Branches     4355     4307      -48     
==========================================
  Hits        10818    10818              
- Misses       3035     3037       +2     
+ Partials      171      170       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Gururajj77 Gururajj77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!!!

@@ -105,7 +218,7 @@ FluidComboBox.propTypes = {
* `onChange` is a utility for this controlled component to communicate to a
* consuming component what kind of internal state changes are occurring.
*/
onChange: PropTypes.func,
onChange: PropTypes.func.isRequired,
Copy link
Member

@tay1orjones tay1orjones Oct 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good idea. While this is technically a breaking change, this should've been required from the beginning because it's required in ComboBox and there is no default provided in this component.

@tay1orjones tay1orjones added this pull request to the merge queue Oct 8, 2024
Merged via the queue into carbon-design-system:main with commit 72617dd Oct 8, 2024
22 of 23 checks passed
@carbon-automation
Copy link
Contributor

Hey there! v11.68.0 was just released that references this issue/PR.

annawen1 pushed a commit to annawen1/carbon that referenced this pull request Oct 11, 2024
…on-design-system#17563)

* fix: renamed js files to tsx for fluid combobox components

* fix: added typescript types to fluid combobox

* fix: snapshots

* Update packages/react/src/components/FluidComboBox/FluidComboBox.tsx

---------

Co-authored-by: Gururaj J <[email protected]>
Co-authored-by: Taylor Jones <[email protected]>
Co-authored-by: Alison Joseph <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add typescript types to FluidComboBox and its skeleton state
4 participants